import http from "@/api";

/**
 * @name 文件上传模块
 */
// 图片上传
export const uploadImg = (params, data) => {
  return http.post(`/system/patient/avatar?id=${data.id}`, params, { loading: false });
};

// 视频上传
export const uploadVideo = params => {
  return http.post(`/file/upload/video`, params, { cancel: false });
};
